package com.lixueju.security.box.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 储存角色信息
 * </p>
 *
 * @author lixueju
 * @since 2019-11-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("u_auth_role")
public class AuthRole extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 本表主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 排序
     */
    @TableField("orderNum")
    private Integer orderNum;

    /**
     * 描述信息
     */
    private String description;

    /**
     * 记录创建时间
     */
    @TableField("createTime")
    private Date createTime;

    /**
     * 记录修改时间
     */
    @TableField("updateTime")
    private Date updateTime;

    /**
     * 删除标签:1未删除、2删除
     */
    @TableField("delFlag")
    private Integer delFlag;


}
